package com.teama4.shop.service;

import com.teama4.shop.domain.Service;
import com.teama4.shop.domain.ServiceExample;
import com.teama4.shop.mapper.ServiceMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class ServiceServiceImpl implements ServiceService {
    @Autowired
    private ServiceMapper serviceMapper;
    @Override
    public long countByExample(ServiceExample example) {
        return serviceMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(ServiceExample example) {
        return serviceMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return serviceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Service record) {
        return serviceMapper.insert(record);
    }

    @Override
    public int insertSelective(Service record) {
        return serviceMapper.insertSelective(record);
    }

    @Override
    public List<Service> selectByExample(ServiceExample example) {
        return serviceMapper.selectByExample(example);
    }

    @Override
    public Service selectByPrimaryKey(Integer id) {
        return serviceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(Service record, ServiceExample example) {
        return serviceMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(Service record, ServiceExample example) {
        return serviceMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(Service record) {
        return serviceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Service record) {
        return serviceMapper.updateByPrimaryKey(record);
    }
}
